/**
 * @author devin
 * @method POST @param data
 * @method GET  @param params
 * 
 * @title 授权接口
 * @status []
 */
import fetch from '@/utils/request';

// type WachatLoginProps = code || state 
interface WachatLoginProps {
  code: string,
  state: string
}

// 微信授权登陆接口 /api/index/wachatLogin
export const wachatLogin = (params: WachatLoginProps) => {
  return fetch.get('/api/index/wachatLogin', { params })
}

// /api/index/isLogin
export const isLogin = () => {
  return fetch.get('/api/index/isLogin')
}